﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Resources.lbResources.lbListProductTitle%>
</asp:Content>
<asp:Content ID="Resgister" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" type="text/css" href="<%=Url.Content("~/Content/jquery.fancybox-1.3.4.css")%>"
        media="screen" />

    <script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery.fancybox-1.3.4.pack.js")%>"></script>

    <script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery.mousewheel-3.0.4.pack.js")%>"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("a.grouped_elements").fancybox({
                'overlayShow': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic'
            });
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="width: 100%">
        <div style="float: left; width: 572px">
            <div id="content">
                <div class="lbProduct">
                    <%
                        string strLang = System.Globalization.CultureInfo.CurrentCulture.DisplayName.Substring(0, 1).ToLower();                        
                    %>
                    <%=Resources.lbResources.lbListProductMain %>
                    >>
                    <%= ViewData["name"] %>
                </div>
                <div style="height: 10px">
                </div>
                <%
                    string strLink = string.Empty;
                    foreach (WebBags.Product p in (IEnumerable<WebBags.Product>)ViewData["lst"])
                    {                        
                %>
                <div class="itemProduct">
                    <%                        
                        strLink = Url.Content("~/uploads/" + p.ImageUrl);
                    %>
                    <a class="grouped_elements" rel="group1" href='<%=strLink %>'>
                        <img src='<%=strLink %>' alt="" width="100px" height="100px" /></a>
                    <%
                        if (!string.IsNullOrEmpty(p.Name_vn))
                        {
                    %>
                    <%=Html.ActionLink((strLang=="v")?p.Name_vn:p.Name_en, "detail", new { id = p.ID })%>
                    <%} %>
                </div>
                <%} %>
            </div>
        </div>
        <div style="float: left; width: 235px; margin-left: 2px">
            <% Html.RenderPartial("~/Views/UserControl/ucLogon.ascx"); %>
        </div>
    </div>
</asp:Content>
